/*
 * @Author: yli
 * @Date: 2021-05-02 23:00:40
 * @LastEditors: yli
 * @LastEditTime: 2021-05-03 00:11:48
 * @Description: file content
 */

#include "mode.h"

#include "logic_output.h"

void ChangeMode(DistortionMode mode)
{
    switch (mode)
    {
    case Normal:
        SetOutputLow(A);
        SetOutputHigh(B);
        SetOutputLow(C);
        break;
    case DistortionOnTop:
        SetOutputLow(A);
        SetOutputLow(B);
        SetOutputHigh(C);
        break;
    case DistortionOnBottom:
        SetOutputLow(A);
        SetOutputLow(B);
        SetOutputLow(C);
        break;
    case BidirectionalDistortion:
        SetOutputHigh(A);
        SetOutputHigh(B);
        SetOutputLow(C);
        break;
    default:
        break;
    }
}
